<template>
  <div class="mod-config">
    <el-upload
      ref="upload"
      action="#"
      list-type="picture-card"
      name="files"
      :limit="6"
      multiple
      :auto-upload="false"
      :on-preview="handlePictureCardPreview"
      :on-download="handleDownload"
      :on-remove="handleRemove"
    >
      <i class="el-icon-plus" />
    </el-upload>
    <el-dialog :visible.sync="dialogVisible">
      <img width="100%" :src="dialogImageUrl" alt="">
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialogImageUrl: '',
      dialogVisible: false,
      disabled: true
    }
  },
  methods: {
    handleRemove(file) {
      console.log(file)
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url
      this.dialogVisible = true
    },
    handleDownload(file) {
      console.log(file)
    }
  }
}
</script>
<style>

</style>
